package com.yihu.dataService.hessian.mongodb.interfaceService;

import org.springframework.stereotype.Repository;

import com.yihu.beans.ResultVO;
import com.yihu.beans.user.Group;
import com.yihu.beans.user.GroupQuery;
import com.yihu.beans.user.GroupRoleRef;
import com.yihu.beans.user.Role;
import com.yihu.beans.user.RolePermitRef;
import com.yihu.beans.user.RoleQuery;
@Repository(value="GroupRoleDao")
public interface GroupRoleHService {

	public ResultVO addRole(Role role);
	public ResultVO deleteRole(long id);
	public ResultVO updateRole(Role role);
	public Role getRole(long id);
	public String getRoleByPage(RoleQuery query);
	public Role getGroupsByRoleId(RoleQuery query);
	public ResultVO addGroupToRole(GroupRoleRef gRef);
	public ResultVO deleteGroupToRole(GroupRoleRef gRef);
	public ResultVO addPriviledgeToRole(RolePermitRef gRef);
	public ResultVO deletePriviledgeFromRole(RolePermitRef gRef);
	public Object getPriviledgesByRoleId(RoleQuery query);
	public ResultVO assignPermits(RolePermitRef rRef);
	public ResultVO assignGroups(GroupRoleRef gRef);
	
}
